home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 61 74 | 67 6c 61 62 2e 62 6c 73 |Path: at|glab.bls|
|00000010| 2e 63 6f 6d 21 75 73 65 | 6e 65 74 0a 46 72 6f 6d |.com!use|net.From|
|00000020| 3a 20 4a 75 73 74 20 41 | 6e 6f 74 68 65 72 20 4e |: Just A|nother N|
|00000030| 65 74 20 55 73 65 72 20 | 3c 67 61 72 79 2e 73 6d |et User |<gary.sm|
|00000040| 69 74 68 33 40 62 72 69 | 64 67 65 2e 62 73 74 2e |ith3@bri|dge.bst.|
|00000050| 62 6c 73 2e 63 6f 6d 3e | 0a 4e 65 77 73 67 72 6f |bls.com>|.Newsgro|
|00000060| 75 70 73 3a 20 63 6f 6d | 70 2e 6c 61 6e 67 2e 63 |ups: com|p.lang.c|
|00000070| 2b 2b 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |++.Subje|ct: Re: |
|00000080| 73 69 7a 65 6f 66 20 64 | 79 6d 61 6e 69 63 20 61 |sizeof d|ymanic a|
|00000090| 72 72 61 79 73 0a 44 61 | 74 65 3a 20 54 68 75 2c |rrays.Da|te: Thu,|
|000000a0| 20 32 32 20 46 65 62 20 | 31 39 39 36 20 31 31 3a | 22 Feb |1996 11:|
|000000b0| 32 32 3a 35 39 20 2d 30 | 35 30 30 0a 4f 72 67 61 |22:59 -0|500.Orga|
|000000c0| 6e 69 7a 61 74 69 6f 6e | 3a 20 42 65 6c 6c 53 6f |nization|: BellSo|
|000000d0| 75 74 68 20 41 54 47 20 | 6c 61 62 0a 4d 65 73 73 |uth ATG |lab.Mess|
|000000e0| 61 67 65 2d 49 44 3a 20 | 3c 33 31 32 43 39 38 36 |age-ID: |<312C986|
|000000f0| 33 2e 33 37 32 44 40 62 | 72 69 64 67 65 2e 62 73 |3.372D@b|ridge.bs|
|00000100| 74 2e 62 6c 73 2e 63 6f | 6d 3e 0a 52 65 66 65 72 |t.bls.co|m>.Refer|
|00000110| 65 6e 63 65 73 3a 20 3c | 33 31 32 42 45 36 42 41 |ences: <|312BE6BA|
|00000120| 2e 33 37 32 35 40 62 79 | 75 2e 65 64 75 3e 0a 4e |.3725@by|u.edu>.N|
|00000130| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|00000140| 3a 20 62 73 74 66 69 72 | 65 77 61 6c 6c 2e 62 73 |: bstfir|ewall.bs|
|00000150| 74 2e 62 6c 73 2e 63 6f | 6d 0a 4d 69 6d 65 2d 56 |t.bls.co|m.Mime-V|
|00000160| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 43 6f 6e 74 |ersion: |1.0.Cont|
|00000170| 65 6e 74 2d 54 79 70 65 | 3a 20 74 65 78 74 2f 70 |ent-Type|: text/p|
|00000180| 6c 61 69 6e 3b 20 63 68 | 61 72 73 65 74 3d 75 73 |lain; ch|arset=us|
|00000190| 2d 61 73 63 69 69 0a 43 | 6f 6e 74 65 6e 74 2d 54 |-ascii.C|ontent-T|
|000001a0| 72 61 6e 73 66 65 72 2d | 45 6e 63 6f 64 69 6e 67 |ransfer-|Encoding|
|000001b0| 3a 20 37 62 69 74 0a 58 | 2d 4d 61 69 6c 65 72 3a |: 7bit.X|-Mailer:|
|000001c0| 20 4d 6f 7a 69 6c 6c 61 | 20 32 2e 30 20 28 58 31 | Mozilla| 2.0 (X1|
|000001d0| 31 3b 20 49 3b 20 48 50 | 2d 55 58 20 41 2e 30 39 |1; I; HP|-UX A.09|
|000001e0| 2e 30 35 20 39 30 30 30 | 2f 37 31 32 29 0a 54 6f |.05 9000|/712).To|
|000001f0| 3a 20 4e 61 74 68 61 6e | 20 4e 65 73 62 69 74 20 |: Nathan| Nesbit |
|00000200| 3c 4e 61 74 68 61 6e 5f | 4e 65 73 62 69 74 40 62 |<Nathan_|Nesbit@b|
|00000210| 79 75 2e 65 64 75 3e 0a | 0a 3e 20 49 20 68 61 76 |yu.edu>.|.> I hav|
|00000220| 65 20 61 20 70 72 6f 62 | 6c 65 6d 20 77 69 74 68 |e a prob|lem with|
|00000230| 20 67 65 74 74 69 6e 67 | 20 74 68 65 20 73 69 7a | getting| the siz|
|00000240| 65 20 6f 66 20 61 20 64 | 79 6e 61 6d 69 63 20 61 |e of a d|ynamic a|
|00000250| 72 72 61 79 2e 0a 3e 0a | 3e 20 7b 0a 3e 20 20 20 |rray..>.|> {.> |
|00000260| 20 20 63 68 61 72 2a 20 | 74 65 6d 70 3b 0a 3e 20 | char* |temp;.> |
|00000270| 20 20 20 20 74 65 6d 70 | 3d 6e 65 77 20 63 68 61 | temp|=new cha|
|00000280| 72 5b 31 30 5d 3b 0a 3e | 20 20 20 20 20 63 6f 75 |r[10];.>| cou|
|00000290| 74 20 3c 3c 20 73 69 7a | 65 6f 66 20 74 65 6d 70 |t << siz|eof temp|
|000002a0| 3b 0a 3e 20 7d 0a 3e 0a | 3e 20 49 20 67 65 74 20 |;.> }.>.|> I get |
|000002b0| 34 20 62 61 63 6b 20 66 | 6f 72 20 74 68 69 73 2e |4 back f|or this.|
|000002c0| 20 20 57 68 69 63 68 20 | 69 73 20 74 68 65 20 73 | Which |is the s|
|000002d0| 69 7a 65 20 6f 66 20 74 | 68 65 20 70 6f 69 6e 74 |ize of t|he point|
|000002e0| 65 72 2c 20 6e 6f 74 20 | 74 68 65 20 61 72 72 61 |er, not |the arra|
|000002f0| 79 2e 0a 0a 43 6f 72 72 | 65 63 74 2e 20 41 6c 73 |y...Corr|ect. Als|
|00000300| 6f 20 73 69 7a 65 6f 66 | 20 2a 74 65 6d 70 20 72 |o sizeof| *temp r|
|00000310| 65 74 75 72 6e 73 20 31 | 20 28 74 68 65 20 73 69 |eturns 1| (the si|
|00000320| 7a 65 20 6f 66 20 31 20 | 63 68 61 72 29 2e 0a 0a |ze of 1 |char)...|
|00000330| 3e 20 20 44 6f 65 73 20 | 61 6e 79 6f 6e 65 20 6b |> Does |anyone k|
|00000340| 6e 6f 77 20 68 6f 77 20 | 74 6f 20 67 65 74 20 74 |now how |to get t|
|00000350| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 65 6c 65 |he numbe|r of ele|
|00000360| 6d 65 6e 74 73 20 69 6e | 20 61 20 64 79 6e 61 6d |ments in| a dynam|
|00000370| 69 63 20 61 72 72 61 79 | 3f 0a 0a 59 65 73 2c 20 |ic array|?..Yes, |
|00000380| 79 6f 75 20 61 6c 72 65 | 61 64 79 20 6b 6e 6f 77 |you alre|ady know|
|00000390| 2e 20 59 6f 75 20 64 69 | 64 20 74 65 6c 6c 20 6e |. You di|d tell n|
|000003a0| 65 77 20 68 6f 77 20 6d | 61 6e 79 20 65 6c 65 6d |ew how m|any elem|
|000003b0| 65 6e 74 73 20 79 6f 75 | 20 77 61 6e 74 65 64 20 |ents you| wanted |
|000003c0| 69 6e 0a 74 68 65 20 66 | 69 72 73 74 20 70 6c 61 |in.the f|irst pla|
|000003d0| 63 65 20 28 31 30 20 69 | 6e 20 79 6f 75 72 20 65 |ce (10 i|n your e|
|000003e0| 78 61 6d 70 6c 65 29 2e | 20 0a 0a 0a 45 2e 67 2e |xample).| ...E.g.|
|000003f0| 0a 0a 20 7b 0a 20 20 20 | 20 20 69 6e 74 20 6e 75 |.. {. | int nu|
|00000400| 6d 45 6c 65 6d 65 6e 74 | 73 3d 31 30 3b 0a 20 20 |mElement|s=10;. |
|00000410| 20 20 20 63 68 61 72 2a | 20 74 65 6d 70 3b 0a 20 | char*| temp;. |
|00000420| 20 20 20 20 74 65 6d 70 | 3d 6e 65 77 20 63 68 61 | temp|=new cha|
|00000430| 72 5b 6e 75 6d 45 6c 65 | 6d 65 6e 74 73 5d 3b 0a |r[numEle|ments];.|
|00000440| 20 20 20 20 20 63 6f 75 | 74 20 3c 3c 20 73 69 7a | cou|t << siz|
|00000450| 65 6f 66 20 28 2a 74 65 | 6d 70 29 2a 6e 75 6d 45 |eof (*te|mp)*numE|
|00000460| 6c 65 6d 65 6e 74 73 3b | 20 20 2f 2f 20 54 6f 74 |lements;| // Tot|
|00000470| 61 6c 20 73 69 7a 65 20 | 69 6e 20 62 79 74 65 73 |al size |in bytes|
|00000480| 20 6f 66 0a 61 6c 6c 6f | 63 61 74 65 64 20 6d 65 | of.allo|cated me|
|00000490| 6d 6f 72 79 0a 20 7d 0a | |mory. }.| |
+--------+-------------------------+-------------------------+--------+--------+